#ifndef SYNC_COUNTER_COMMON_H_
#define SYNC_COUNTER_COMMON_H_
#include <linux/printk.h>


#define STR(tok) #tok
#define XSTR(tok) STR(tok)

#define MODULENAME "sync_counter"

#define PR_DEBUG(fmt, ...) \
    pr_debug("[<"MODULENAME">] DEBUG "__FILE__":"XSTR(__LINE__)" : "fmt"\n", ##__VA_ARGS__)

#define PR_INFO(fmt, ...) \
    pr_info("[<"MODULENAME">] INFO "__FILE__":"XSTR(__LINE__)" : "fmt"\n", ##__VA_ARGS__)

#define PR_WARN(fmt, ...) \
    pr_warn("[<"MODULENAME">] WARN "__FILE__":"XSTR(__LINE__)" : "fmt"\n", ##__VA_ARGS__)

#define PR_ERR(fmt, ...) \
    pr_err("[<"MODULENAME">] ERR "__FILE__":"XSTR(__LINE__)" : "fmt"\n", ##__VA_ARGS__)

#endif
